package service.impl;

import java.sql.ResultSet;
import java.util.List;

import service.IBookService;
import dao.IBookDao;
import dao.impl.BookDaoImpl;
import entity.Book;

public class BookServiceImpl implements IBookService{

	private IBookDao bookDao= new BookDaoImpl();
	
	@Override
	public List<Book> findAllBook(){
		return bookDao.findAllBook();
	}
	
	@Override
	public List<Book> findViewList(String list){
		return bookDao.findViewList(list);
	}
	
	@Override
	public Book findByBookid(String bookid){
		return bookDao.findByBookid(bookid);
	}
	
	@Override
	public List<Book> findByBookname(String bookname) {
		return bookDao.findByBookname(bookname);
	}
	
	@Override
	public List<Book> rsToBook(ResultSet rs){
		return bookDao.rsToBook(rs);
	}
	
	@Override
	public int addBook(Book book){
		return bookDao.addBook(book);
	}
	
	@Override
	public int deleteBook(Book book){
		return bookDao.deleteBook(book);
	}
	
	@Override
	public int updateBook(Book book){
		return bookDao.updateBook(book);
	}


	
}
